Added function for loggin in and Class for the message