Register on server functionality added (req res)