Some work on login system