Created session controler for login