Closing modal after login