added support for password pattern, added support to see what is wrong
if the registration does not goes through. fixed out-dated layout to the
new one where two passwords fields.
Added test class for the registration form, and test cases to validate
usernames and passwords