login patterns + init of app