Bug fixes to changes.

- Account locked checking now works again
- Fixed a problem where it only checked the end of the passwords ("a"
would work for "testa")
- Added try statement in the register activity