added login registrations function and default page