Fixed the logging in process and removed the need to store users' credentials. Only workable for local version.