updated login function so that bot logs in automatically :D