updated user_login to detect if user already logged in, added logout script that