Completed beta implementation of login system