User now gets logged in after having registered. Fixed #18