added functionality for log-ins