started writing session functions
working validation function with login function and form, next is to create session in login function