changes to get login working on AWS