login v1

based from tutorial in codefactorycr