Changed login

Added provisions for pub web log in.
Also cleaned up some warning flags.