design ui and apply authentication