API authentication routines & homepage Flat UI design