Added length restriction for passwords

Passwords can now only be between 6-2 characters. Error displayed if its
lesser or more than this range.