login and registration base working