login functionality implemented in UI