easy to use, secure functions needed for logging users in and out of an interface