Finished login implementation on backend side