I guess the problem in the length of column of your table, set the length of password field to at least 32
No way MySQL returns it of a length of < 32. If you would do a simple query like SELECT md5('brickmasterj'), you would see. Now you are most likely inserting the value into a column which is not wide enough.
SELECT md5('brickmasterj')
Is your database field 32 characters long? Are you writing to the database using mysql's md5?