added not implemented alert
moved custom login codes