added logging for login and create