added login register logout sessions and database working