Fixed Login procedure,
updated refresh method in router