Completed basic login system