Added exception check to make

user login to the server first if they havent done it yet