password type changed to int, and some other changes:)