Allows users to login through login-dialog