finished Login and registraion