Ok, So I made a custom login block for my drupal install and I type in information in and all, submit and it takes me to the login page. I type it in again and I finally login. I am not sure why this is not working, I found this code on this site and modified it slightly (can't remember where.)
print drupal_get_destination() " method="post" id="user-login">
if ($user->uid) :
I am running Drupal 6. Also if you could tell me where I can locate the code for the pre-installed blocks so I can use as reference that'd be great.