added delay for login