Added session functionality and user log in header