User can now log in and cookie works