implementing functional register and login

functional secured login and register system. data accurately recorded
in the database