added handling for login of a user, that is already logged in and some
minor logging