Changes for log in functionality