Begining of login and message getting