Adding api for rest login
Created form to be able to authenticate user