A simple script for logins and authorisation.