Added signup functionality and event handling for when signed in and signed up