user register and login at frontend