added register screen and linked to database