creating home page with login and register functionality