#2 working on login section also using traits to use multiple inheritance