[Security] implements login