Fix admin log in functionality with response to client