Trying to do some login debugging and security improvements!