Registration added.
Flash added for register successfully.
registration failed message added.
workings on the login.