Changes for login and register procedure
Change closure def.
bootstrapped...