refactored login
fixed account and photo path