automated script for user login