Added fully functional login system