Added cookie sessions to allow login