Clean code in Authentication app