Added psuedo-login functionality.