login and register implementation

login and register implementation, handlers/user