Added login code inside users