Move R eval and log commands to after successful login, login fails if login command isn't first