login and register functions are done.
lets to do cookies and sessions for authentication